import request from '@/utils/request'

export const addOneFeedback = data => request({
  url: '/addOneFeedback',
  method: 'put',
  data: data || {}
})

export const deleteOneFeedback = id => request({
  url: '/deleteOneFeedback/' + id,
  method: 'delete'
})

export const updateOneFeedback = data => request({
  url: '/updateOneFeedback',
  method: 'patch',
  data: data || {}
})

export const getOneFeedback = id => request({
  url: '/getOneFeedback/' + id,
  method: 'get'
})

export const getFeedbackList = data => request({
  url: '/getFeedbackList',
  method: 'post',
  data: data || {}
})

export const getAllFeedbackList = () => request({
  url: '/getAllFeedbackList',
  method: 'get'
})

